﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace ebc.patterns.tests
{
    [TestFixture]
    public class test_Filter
    {
        [Test]
        public void filter_value()
        {
            var sut = new Filter<string, int>(s => s.Length);

            int result = 0;
            sut.Out_Filtered += n => result = n;
            sut.In_Filter("hello");

            Assert.AreEqual(5, result);
        }

    }
}
